import { request } from '@/utils/request'

//得到所有用户
export function getAllUser (pageNum, pageSize) {
  return request({
    url: '/api/user/list?pageNum=' + pageNum + '&pageSize=' + pageSize,
    method: 'get'
  })
}

//根据用户id删除用户
export function deleteUser (userId) {
  return request({
    url: '/api/user/delete?userId=' + userId,
    method: 'delete'
  })
}

//更新用户信息
export function updateUserInfo (params) {
  return request({
    url: '/api/user/update',
    method: 'put',
    data: params
  })
}